<?php
session_start();

require './includes/functions.php';

if (!isset($_SESSION['user'])) {
    redirect_to("../401.php");
}

include './includes/count_visitors_class.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
    <head>
        <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW" />
        <!--

Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
        -->
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
        <title>ISIMG Android</title>
        <link rel="stylesheet" href="./css/style.css" type="text/css" media="screen" />
        <!--[if IE 6]><link rel="stylesheet" href="./css/style.ie6.css" type="text/css" media="screen" /><![endif]-->
        <!--[if IE 7]><link rel="stylesheet" href="./css/style.ie7.css" type="text/css" media="screen" /><![endif]-->
        <script type="text/javascript" src="./js/jquery.js"></script>
        <script type="text/javascript" src="./js/script.js"></script>
    </head>
    <body>
        <div id="henispage-background-glare">
            <div id="henispage-background-glare-image">
                <div id="henismain">
                    <div class="henisheader">
                        <div class="henisheader-center">
                            <div class="henisheader-jpeg"></div>
                        </div>
                        <div class="henisheader-wrapper">
                            <div class="henisheader-inner">
                                <div class="henisheaderobject"></div>
                                <div class="henislogo">
                                    <h1 id="name-text" class="henislogo-name"><a href="./index.php">Administration du site</a></h1>
                                    <h2 id="slogan-text" class="henislogo-text">ISIMG Android</h2>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="henisnav">
                        <div class="henisnav-l"></div>
                        <div class="henisnav-r"></div>
                        <div class="henisnav-wrapper">
                            <div class="henisnav-inner">
                                <ul class="henismenu">
                                    <li><a href="./index.php" class="active"><span class="l"> </span><span class="r"> </span><span class="t">Accueil</span></a></li>
                                    <li><a href="./adm_actualites.php"><span class="l"> </span><span class="r"> </span><span class="t">Actualités</span></a></li>
                                    <li><a href="./adm_sponsors.php"><span class="l"> </span><span class="r"> </span><span class="t">Sponsors</span></a></li>
                                    <li><a href="./adm_comite_pilotage.php"><span class="l"> </span><span class="r"> </span><span class="t">Comité de pilotage</span></a></li>
                                    <li><a href="./adm_comite_organisation.php"><span class="l"> </span><span class="r"> </span><span class="t">Comité d'organisation</span></a></li>
                                    <li><a href="./adm_participants.php"><span class="l"> </span><span class="r"> </span><span class="t">Participants</span></a></li>
                                <li><a href="./adm-auth/act_authentification.php?action=logout"><span class="l"> </span><span class="r"> </span><span class="t">Déconnexion</span></a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="henissheet">
                        <div class="henissheet-tl"></div>
                        <div class="henissheet-tr"></div>
                        <div class="henissheet-bl"></div>
                        <div class="henissheet-br"></div>
                        <div class="henissheet-tc"></div>
                        <div class="henissheet-bc"></div>
                        <div class="henissheet-cl"></div>
                        <div class="henissheet-cr"></div>
                        <div class="henissheet-cc"></div>
                        <div class="henissheet-body">
                            <div class="heniscontent-layout">
                                <div class="heniscontent-layout-row">
                                    <div class="henislayout-cell heniscontent">
                                        <div class="henispost">
                                            <div class="henispost-tl"></div>
                                            <div class="henispost-tr"></div>
                                            <div class="henispost-bl"></div>
                                            <div class="henispost-br"></div>
                                            <div class="henispost-tc"></div>
                                            <div class="henispost-bc"></div>
                                            <div class="henispost-cl"></div>
                                            <div class="henispost-cr"></div>
                                            <div class="henispost-cc"></div>
                                            <div class="henispost-body">
                                                <div class="henispost-inner henisarticle">
                                                    <h2 class="henispostheader">Accueil</h2>
                                                    <div class="henispostcontent">
                                                        <span style="font-size: 20px;">
                                                            <blockquote style="text-align: left; ">Bienvenue dans la partie administration du site du 2<sup>ème</sup> workshop de l'ISIMG : Développement d'applications mobiles pour terminaux sous android.</blockquote>
                                                        </span>

                                                        <br />
                                                        <br />
                                                        <br />
                                                        
                                                        <span style="font-size: 14px; text-align: center">
                                                            
                                                                

                                                            <?php $stats = new Count_visitors; ?>

                                                            <h3>Statistiques des visites</h3>
                                                            <table width="680">
                                                                <tr>
                                                                    <td width="20%">Première visite le : </td>
                                                                    <td width="35%"><?php echo $stats->first_last_visit("first"); ?></td>
                                                                    <td width="20%">Visites Aujourd'hui : </td>
                                                                    <td><?php echo $stats->show_visits_today(); ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <td>Dernière visite le : </td>
                                                                    <td><?php echo $stats->first_last_visit("last"); ?></td>
                                                                    <td>Total des visites : </td>
                                                                    <td><?php echo $stats->show_all_visits(); ?></td>
                                                                </tr>
                                                            </table>
                                                            
                                                            <br />
                                                            <br />
                                                            <?php echo $stats->stats_country(); ?>
                                                            <br />
                                                            <?php echo $stats->stats_totals(); ?>
                                                            
                                                        </span>

                                                        <br />
                                                        <br />
                                                        <br />



                                                    </div>
                                                    <div class="cleared"></div>
                                                </div>
                                                <div class="cleared"></div>
                                            </div>
                                        </div>
                                        <div class="cleared"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="cleared"></div>
                            <div class="cleared"></div>
                        </div>
                    </div>
                    <div class="henisfooter">
                        <div class="henisfooter-t"></div>
                        <div class="henisfooter-b"></div>
                        <div class="henisfooter-body">
                            <div class="henisfooter-text">
                                <div class="cleared"></div>
                                <p class="henispage-footer">Auteur : <a href="http://www.isimg.rnu.tn/fra/profil/heni_saber">henis</a>.</p>
                            </div>
                            <div class="cleared"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
